package com.xuecheng.framework.domain.course.response;

import com.xuecheng.framework.model.response.ResponseResult;
import com.xuecheng.framework.model.response.ResultCode;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/*
 * 课程预览响应结果类型
 */
@Data
@ToString
@NoArgsConstructor//自动生成无参构造方法
public class CoursePublishResult extends ResponseResult{
    
    String previewUrl;
    
    //定义一个有参的构造方法
    public CoursePublishResult(ResultCode resultCode,String previewUrl) {
        super(resultCode);
        this.previewUrl = previewUrl;
    }

}
